<!DOCTYPE HTML>

<html lang="en">
<head>

<title>WebSecurity (spring-security-docs 5.6.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="WebSecurity (spring-security-docs 5.6.3 API)";
        }
    }
    catch(err) {
    }
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":42,"i11":10,"i12":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">

<div class="topNav"><a id="navbar.top">

</a>
<div class="skipNav"><a href="WebSecurity.html#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">

</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="WebSecurity.html#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="WebSecurity.html#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="WebSecurity.html#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="WebSecurity.html#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="WebSecurity.html#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">

</a></div>

</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>

<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.springframework.security.config.annotation.web.builders</a></div>
<h2 title="Class WebSecurity" class="title">Class WebSecurity</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../AbstractSecurityBuilder.html" title="class in org.springframework.security.config.annotation">org.springframework.security.config.annotation.AbstractSecurityBuilder</a>&lt;O&gt;</li>
<li>
<ul class="inheritance">
<li><a href="../../AbstractConfiguredSecurityBuilder.html" title="class in org.springframework.security.config.annotation">org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder</a>&lt;javax.servlet.Filter,&#8203;<a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a>&gt;</li>
<li>
<ul class="inheritance">
<li>org.springframework.security.config.annotation.web.builders.WebSecurity</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code>org.springframework.beans.factory.Aware</code>, <code>org.springframework.context.ApplicationContextAware</code>, <code><a href="../../SecurityBuilder.html" title="interface in org.springframework.security.config.annotation">SecurityBuilder</a>&lt;javax.servlet.Filter&gt;</code>, <code>org.springframework.web.context.ServletContextAware</code></dd>
</dl>
<hr>
<pre>public final class <span class="typeNameLabel">WebSecurity</span>
extends <a href="../../AbstractConfiguredSecurityBuilder.html" title="class in org.springframework.security.config.annotation">AbstractConfiguredSecurityBuilder</a>&lt;javax.servlet.Filter,&#8203;<a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a>&gt;
implements <a href="../../SecurityBuilder.html" title="interface in org.springframework.security.config.annotation">SecurityBuilder</a>&lt;javax.servlet.Filter&gt;, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware</pre>
<div class="block"><p>
The <a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders"><code>WebSecurity</code></a> is created by <a href="../configuration/WebSecurityConfiguration.html" title="class in org.springframework.security.config.annotation.web.configuration"><code>WebSecurityConfiguration</code></a> to create the
<a href="../../../../web/FilterChainProxy.html" title="class in org.springframework.security.web"><code>FilterChainProxy</code></a> known as the Spring Security Filter Chain
(springSecurityFilterChain). The springSecurityFilterChain is the <code>Filter</code> that
the <code>DelegatingFilterProxy</code> delegates to.
</p>
<p>
Customizations to the <a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders"><code>WebSecurity</code></a> can be made by creating a
<a href="../WebSecurityConfigurer.html" title="interface in org.springframework.security.config.annotation.web"><code>WebSecurityConfigurer</code></a>, overriding <a href="../configuration/WebSecurityConfigurerAdapter.html" title="class in org.springframework.security.config.annotation.web.configuration"><code>WebSecurityConfigurerAdapter</code></a> or
exposing a <a href="../configuration/WebSecurityCustomizer.html" title="interface in org.springframework.security.config.annotation.web.configuration"><code>WebSecurityCustomizer</code></a> bean.
</p></div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>3.2</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../configuration/EnableWebSecurity.html" title="annotation in org.springframework.security.config.annotation.web.configuration"><code>EnableWebSecurity</code></a>,
<a href="../configuration/WebSecurityConfiguration.html" title="class in org.springframework.security.config.annotation.web.configuration"><code>WebSecurityConfiguration</code></a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">

</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.IgnoredRequestConfigurer.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity.IgnoredRequestConfigurer</a></span></code></th>
<td class="colLast">
<div class="block">Allows registering <a href="../../../../web/util/matcher/RequestMatcher.html" title="interface in org.springframework.security.web.util.matcher"><code>RequestMatcher</code></a> instances that should be ignored by
Spring Security.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.MvcMatchersIgnoredRequestConfigurer.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity.MvcMatchersIgnoredRequestConfigurer</a></span></code></th>
<td class="colLast">
<div class="block">An <a href="WebSecurity.IgnoredRequestConfigurer.html" title="class in org.springframework.security.config.annotation.web.builders"><code>WebSecurity.IgnoredRequestConfigurer</code></a> that allows optionally configuring the
<a href="../../../../web/servlet/util/matcher/MvcRequestMatcher.html#setMethod(org.springframework.http.HttpMethod)"><code>MvcRequestMatcher.setMethod(HttpMethod)</code></a></div>
</td>
</tr>
</table>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">

</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.html#%3Cinit%3E(org.springframework.security.config.annotation.ObjectPostProcessor)">WebSecurity</a></span>&#8203;(<a href="../../ObjectPostProcessor.html" title="interface in org.springframework.security.config.annotation">ObjectPostProcessor</a>&lt;java.lang.Object&gt;&nbsp;objectPostProcessor)</code></th>
<td class="colLast">
<div class="block">Creates a new instance</div>
</td>
</tr>
</table>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">

</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.html#addSecurityFilterChainBuilder(org.springframework.security.config.annotation.SecurityBuilder)">addSecurityFilterChainBuilder</a></span>&#8203;(<a href="../../SecurityBuilder.html" title="interface in org.springframework.security.config.annotation">SecurityBuilder</a>&lt;? extends <a href="../../../../web/SecurityFilterChain.html" title="interface in org.springframework.security.web">SecurityFilterChain</a>&gt;&nbsp;securityFilterChainBuilder)</code></th>
<td class="colLast">
<div class="block">
Adds builders to create <a href="../../../../web/SecurityFilterChain.html" title="interface in org.springframework.security.web"><code>SecurityFilterChain</code></a> instances.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.html#debug(boolean)">debug</a></span>&#8203;(boolean&nbsp;debugEnabled)</code></th>
<td class="colLast">
<div class="block">Controls debugging support for Spring Security.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.html#expressionHandler(org.springframework.security.access.expression.SecurityExpressionHandler)">expressionHandler</a></span>&#8203;(<a href="../../../../access/expression/SecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression">SecurityExpressionHandler</a>&lt;<a href="../../../../web/FilterInvocation.html" title="class in org.springframework.security.web">FilterInvocation</a>&gt;&nbsp;expressionHandler)</code></th>
<td class="colLast">
<div class="block">Set the <a href="../../../../access/expression/SecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression"><code>SecurityExpressionHandler</code></a> to be used.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../access/expression/SecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression">SecurityExpressionHandler</a>&lt;<a href="../../../../web/FilterInvocation.html" title="class in org.springframework.security.web">FilterInvocation</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.html#getExpressionHandler()">getExpressionHandler</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the <a href="../../../../access/expression/SecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression"><code>SecurityExpressionHandler</code></a> to be used.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../web/access/WebInvocationPrivilegeEvaluator.html" title="interface in org.springframework.security.web.access">WebInvocationPrivilegeEvaluator</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.html#getPrivilegeEvaluator()">getPrivilegeEvaluator</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the <a href="../../../../web/access/WebInvocationPrivilegeEvaluator.html" title="interface in org.springframework.security.web.access"><code>WebInvocationPrivilegeEvaluator</code></a> to be used.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.html#httpFirewall(org.springframework.security.web.firewall.HttpFirewall)">httpFirewall</a></span>&#8203;(<a href="../../../../web/firewall/HttpFirewall.html" title="interface in org.springframework.security.web.firewall">HttpFirewall</a>&nbsp;httpFirewall)</code></th>
<td class="colLast">
<div class="block">Allows customizing the <a href="../../../../web/firewall/HttpFirewall.html" title="interface in org.springframework.security.web.firewall"><code>HttpFirewall</code></a>.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="WebSecurity.IgnoredRequestConfigurer.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity.IgnoredRequestConfigurer</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.html#ignoring()">ignoring</a></span>()</code></th>
<td class="colLast">
<div class="block">
Allows adding <a href="../../../../web/util/matcher/RequestMatcher.html" title="interface in org.springframework.security.web.util.matcher"><code>RequestMatcher</code></a> instances that Spring Security should ignore.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>protected javax.servlet.Filter</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.html#performBuild()">performBuild</a></span>()</code></th>
<td class="colLast">
<div class="block">Subclasses must implement this method to build the object that is being returned.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.html#postBuildAction(java.lang.Runnable)">postBuildAction</a></span>&#8203;(java.lang.Runnable&nbsp;postBuildAction)</code></th>
<td class="colLast">
<div class="block">Executes the Runnable immediately after the build takes place</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.html#privilegeEvaluator(org.springframework.security.web.access.WebInvocationPrivilegeEvaluator)">privilegeEvaluator</a></span>&#8203;(<a href="../../../../web/access/WebInvocationPrivilegeEvaluator.html" title="interface in org.springframework.security.web.access">WebInvocationPrivilegeEvaluator</a>&nbsp;privilegeEvaluator)</code></th>
<td class="colLast">
<div class="block">Set the <a href="../../../../web/access/WebInvocationPrivilegeEvaluator.html" title="interface in org.springframework.security.web.access"><code>WebInvocationPrivilegeEvaluator</code></a> to be used.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.html#securityInterceptor(org.springframework.security.web.access.intercept.FilterSecurityInterceptor)">securityInterceptor</a></span>&#8203;(<a href="../../../../web/access/intercept/FilterSecurityInterceptor.html" title="class in org.springframework.security.web.access.intercept">FilterSecurityInterceptor</a>&nbsp;securityInterceptor)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="WebSecurity.html#privilegeEvaluator(org.springframework.security.web.access.WebInvocationPrivilegeEvaluator)"><code>privilegeEvaluator(WebInvocationPrivilegeEvaluator)</code></a>
instead</div>
</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.html#setApplicationContext(org.springframework.context.ApplicationContext)">setApplicationContext</a></span>&#8203;(org.springframework.context.ApplicationContext&nbsp;applicationContext)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="WebSecurity.html#setServletContext(javax.servlet.ServletContext)">setServletContext</a></span>&#8203;(javax.servlet.ServletContext&nbsp;servletContext)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder">

</a>
<h3>Methods inherited from class&nbsp;org.springframework.security.config.annotation.<a href="../../AbstractConfiguredSecurityBuilder.html" title="class in org.springframework.security.config.annotation">AbstractConfiguredSecurityBuilder</a></h3>
<code><a href="../../AbstractConfiguredSecurityBuilder.html#apply(C)">apply</a>, <a href="../../AbstractConfiguredSecurityBuilder.html#beforeConfigure()">beforeConfigure</a>, <a href="../../AbstractConfiguredSecurityBuilder.html#beforeInit()">beforeInit</a>, <a href="../../AbstractConfiguredSecurityBuilder.html#doBuild()">doBuild</a>, <a href="../../AbstractConfiguredSecurityBuilder.html#getConfigurer(java.lang.Class)">getConfigurer</a>, <a href="../../AbstractConfiguredSecurityBuilder.html#getConfigurers(java.lang.Class)">getConfigurers</a>, <a href="../../AbstractConfiguredSecurityBuilder.html#getOrBuild()">getOrBuild</a>, <a href="../../AbstractConfiguredSecurityBuilder.html#getSharedObject(java.lang.Class)">getSharedObject</a>, <a href="../../AbstractConfiguredSecurityBuilder.html#getSharedObjects()">getSharedObjects</a>, <a href="../../AbstractConfiguredSecurityBuilder.html#objectPostProcessor(org.springframework.security.config.annotation.ObjectPostProcessor)">objectPostProcessor</a>, <a href="../../AbstractConfiguredSecurityBuilder.html#postProcess(P)">postProcess</a>, <a href="../../AbstractConfiguredSecurityBuilder.html#removeConfigurer(java.lang.Class)">removeConfigurer</a>, <a href="../../AbstractConfiguredSecurityBuilder.html#removeConfigurers(java.lang.Class)">removeConfigurers</a>, <a href="../../AbstractConfiguredSecurityBuilder.html#setSharedObject(java.lang.Class,C)">setSharedObject</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.springframework.security.config.annotation.AbstractSecurityBuilder">

</a>
<h3>Methods inherited from class&nbsp;org.springframework.security.config.annotation.<a href="../../AbstractSecurityBuilder.html" title="class in org.springframework.security.config.annotation">AbstractSecurityBuilder</a></h3>
<code><a href="../../AbstractSecurityBuilder.html#build()">build</a>, <a href="../../AbstractSecurityBuilder.html#getObject()">getObject</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">

</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.springframework.security.config.annotation.SecurityBuilder">

</a>
<h3>Methods inherited from interface&nbsp;org.springframework.security.config.annotation.<a href="../../SecurityBuilder.html" title="interface in org.springframework.security.config.annotation">SecurityBuilder</a></h3>
<code><a href="../../SecurityBuilder.html#build()">build</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">

</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(org.springframework.security.config.annotation.ObjectPostProcessor)">

</a>
<ul class="blockListLast">
<li class="blockList">
<h4>WebSecurity</h4>
<pre>public&nbsp;WebSecurity&#8203;(<a href="../../ObjectPostProcessor.html" title="interface in org.springframework.security.config.annotation">ObjectPostProcessor</a>&lt;java.lang.Object&gt;&nbsp;objectPostProcessor)</pre>
<div class="block">Creates a new instance</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>objectPostProcessor</code> - the <a href="../../ObjectPostProcessor.html" title="interface in org.springframework.security.config.annotation"><code>ObjectPostProcessor</code></a> to use</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../configuration/WebSecurityConfiguration.html" title="class in org.springframework.security.config.annotation.web.configuration"><code>WebSecurityConfiguration</code></a></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">

</a>
<h3>Method Detail</h3>
<a id="ignoring()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>ignoring</h4>
<pre class="methodSignature">public&nbsp;<a href="WebSecurity.IgnoredRequestConfigurer.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity.IgnoredRequestConfigurer</a>&nbsp;ignoring()</pre>
<div class="block"><p>
Allows adding <a href="../../../../web/util/matcher/RequestMatcher.html" title="interface in org.springframework.security.web.util.matcher"><code>RequestMatcher</code></a> instances that Spring Security should ignore.
Web Security provided by Spring Security (including the <a href="../../../../core/context/SecurityContext.html" title="interface in org.springframework.security.core.context"><code>SecurityContext</code></a>)
will not be available on <code>HttpServletRequest</code> that match. Typically the
requests that are registered should be that of only static resources. For requests
that are dynamic, consider mapping the request to allow all users instead.
</p>
Example Usage:
<pre> webSecurityBuilder.ignoring()
 // ignore all URLs that start with /resources/ or /static/
                .antMatchers(&quot;/resources/**&quot;, &quot;/static/**&quot;);
 </pre>
Alternatively this will accomplish the same result:
<pre> webSecurityBuilder.ignoring()
 // ignore all URLs that start with /resources/ or /static/
                .antMatchers(&quot;/resources/**&quot;).antMatchers(&quot;/static/**&quot;);
 </pre>
Multiple invocations of ignoring() are also additive, so the following is also
equivalent to the previous two examples:
<pre> webSecurityBuilder.ignoring()
 // ignore all URLs that start with /resources/
                .antMatchers(&quot;/resources/**&quot;);
 webSecurityBuilder.ignoring()
 // ignore all URLs that start with /static/
                .antMatchers(&quot;/static/**&quot;);
 // now both URLs that start with /resources/ and /static/ will be ignored
 </pre></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="WebSecurity.IgnoredRequestConfigurer.html" title="class in org.springframework.security.config.annotation.web.builders"><code>WebSecurity.IgnoredRequestConfigurer</code></a> to use for registering request that
should be ignored</dd>
</dl>
</li>
</ul>
<a id="httpFirewall(org.springframework.security.web.firewall.HttpFirewall)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>httpFirewall</h4>
<pre class="methodSignature">public&nbsp;<a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a>&nbsp;httpFirewall&#8203;(<a href="../../../../web/firewall/HttpFirewall.html" title="interface in org.springframework.security.web.firewall">HttpFirewall</a>&nbsp;httpFirewall)</pre>
<div class="block">Allows customizing the <a href="../../../../web/firewall/HttpFirewall.html" title="interface in org.springframework.security.web.firewall"><code>HttpFirewall</code></a>. The default is
<a href="../../../../web/firewall/StrictHttpFirewall.html" title="class in org.springframework.security.web.firewall"><code>StrictHttpFirewall</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>httpFirewall</code> - the custom <a href="../../../../web/firewall/HttpFirewall.html" title="interface in org.springframework.security.web.firewall"><code>HttpFirewall</code></a></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders"><code>WebSecurity</code></a> for further customizations</dd>
</dl>
</li>
</ul>
<a id="debug(boolean)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>debug</h4>
<pre class="methodSignature">public&nbsp;<a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a>&nbsp;debug&#8203;(boolean&nbsp;debugEnabled)</pre>
<div class="block">Controls debugging support for Spring Security.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>debugEnabled</code> - if true, enables debug support with Spring Security. Default is
false.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders"><code>WebSecurity</code></a> for further customization.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../configuration/EnableWebSecurity.html#debug()"><code>EnableWebSecurity.debug()</code></a></dd>
</dl>
</li>
</ul>
<a id="addSecurityFilterChainBuilder(org.springframework.security.config.annotation.SecurityBuilder)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>addSecurityFilterChainBuilder</h4>
<pre class="methodSignature">public&nbsp;<a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a>&nbsp;addSecurityFilterChainBuilder&#8203;(<a href="../../SecurityBuilder.html" title="interface in org.springframework.security.config.annotation">SecurityBuilder</a>&lt;? extends <a href="../../../../web/SecurityFilterChain.html" title="interface in org.springframework.security.web">SecurityFilterChain</a>&gt;&nbsp;securityFilterChainBuilder)</pre>
<div class="block"><p>
Adds builders to create <a href="../../../../web/SecurityFilterChain.html" title="interface in org.springframework.security.web"><code>SecurityFilterChain</code></a> instances.
</p>
<p>
Typically this method is invoked automatically within the framework from
<a href="../configuration/WebSecurityConfigurerAdapter.html#init(org.springframework.security.config.annotation.web.builders.WebSecurity)"><code>WebSecurityConfigurerAdapter.init(WebSecurity)</code></a>
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>securityFilterChainBuilder</code> - the builder to use to create the
<a href="../../../../web/SecurityFilterChain.html" title="interface in org.springframework.security.web"><code>SecurityFilterChain</code></a> instances</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders"><code>WebSecurity</code></a> for further customizations</dd>
</dl>
</li>
</ul>
<a id="privilegeEvaluator(org.springframework.security.web.access.WebInvocationPrivilegeEvaluator)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>privilegeEvaluator</h4>
<pre class="methodSignature">public&nbsp;<a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a>&nbsp;privilegeEvaluator&#8203;(<a href="../../../../web/access/WebInvocationPrivilegeEvaluator.html" title="interface in org.springframework.security.web.access">WebInvocationPrivilegeEvaluator</a>&nbsp;privilegeEvaluator)</pre>
<div class="block">Set the <a href="../../../../web/access/WebInvocationPrivilegeEvaluator.html" title="interface in org.springframework.security.web.access"><code>WebInvocationPrivilegeEvaluator</code></a> to be used. If this is not
specified, then a <a href="../../../../web/access/DefaultWebInvocationPrivilegeEvaluator.html" title="class in org.springframework.security.web.access"><code>DefaultWebInvocationPrivilegeEvaluator</code></a> will be created
when <a href="WebSecurity.html#securityInterceptor(org.springframework.security.web.access.intercept.FilterSecurityInterceptor)"><code>securityInterceptor(FilterSecurityInterceptor)</code></a> is non null.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>privilegeEvaluator</code> - the <a href="../../../../web/access/WebInvocationPrivilegeEvaluator.html" title="interface in org.springframework.security.web.access"><code>WebInvocationPrivilegeEvaluator</code></a> to use</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders"><code>WebSecurity</code></a> for further customizations</dd>
</dl>
</li>
</ul>
<a id="expressionHandler(org.springframework.security.access.expression.SecurityExpressionHandler)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>expressionHandler</h4>
<pre class="methodSignature">public&nbsp;<a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a>&nbsp;expressionHandler&#8203;(<a href="../../../../access/expression/SecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression">SecurityExpressionHandler</a>&lt;<a href="../../../../web/FilterInvocation.html" title="class in org.springframework.security.web">FilterInvocation</a>&gt;&nbsp;expressionHandler)</pre>
<div class="block">Set the <a href="../../../../access/expression/SecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression"><code>SecurityExpressionHandler</code></a> to be used. If this is not specified,
then a <a href="../../../../web/access/expression/DefaultWebSecurityExpressionHandler.html" title="class in org.springframework.security.web.access.expression"><code>DefaultWebSecurityExpressionHandler</code></a> will be used.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>expressionHandler</code> - the <a href="../../../../access/expression/SecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression"><code>SecurityExpressionHandler</code></a> to use</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders"><code>WebSecurity</code></a> for further customizations</dd>
</dl>
</li>
</ul>
<a id="getExpressionHandler()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>getExpressionHandler</h4>
<pre class="methodSignature">public&nbsp;<a href="../../../../access/expression/SecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression">SecurityExpressionHandler</a>&lt;<a href="../../../../web/FilterInvocation.html" title="class in org.springframework.security.web">FilterInvocation</a>&gt;&nbsp;getExpressionHandler()</pre>
<div class="block">Gets the <a href="../../../../access/expression/SecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression"><code>SecurityExpressionHandler</code></a> to be used.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="../../../../access/expression/SecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression"><code>SecurityExpressionHandler</code></a> for further customizations</dd>
</dl>
</li>
</ul>
<a id="getPrivilegeEvaluator()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>getPrivilegeEvaluator</h4>
<pre class="methodSignature">public&nbsp;<a href="../../../../web/access/WebInvocationPrivilegeEvaluator.html" title="interface in org.springframework.security.web.access">WebInvocationPrivilegeEvaluator</a>&nbsp;getPrivilegeEvaluator()</pre>
<div class="block">Gets the <a href="../../../../web/access/WebInvocationPrivilegeEvaluator.html" title="interface in org.springframework.security.web.access"><code>WebInvocationPrivilegeEvaluator</code></a> to be used.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="../../../../web/access/WebInvocationPrivilegeEvaluator.html" title="interface in org.springframework.security.web.access"><code>WebInvocationPrivilegeEvaluator</code></a> for further customizations</dd>
</dl>
</li>
</ul>
<a id="securityInterceptor(org.springframework.security.web.access.intercept.FilterSecurityInterceptor)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>securityInterceptor</h4>
<pre class="methodSignature">public&nbsp;<a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a>&nbsp;securityInterceptor&#8203;(<a href="../../../../web/access/intercept/FilterSecurityInterceptor.html" title="class in org.springframework.security.web.access.intercept">FilterSecurityInterceptor</a>&nbsp;securityInterceptor)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="WebSecurity.html#privilegeEvaluator(org.springframework.security.web.access.WebInvocationPrivilegeEvaluator)"><code>privilegeEvaluator(WebInvocationPrivilegeEvaluator)</code></a>
instead</div>
</div>
<div class="block">Sets the <a href="../../../../web/access/intercept/FilterSecurityInterceptor.html" title="class in org.springframework.security.web.access.intercept"><code>FilterSecurityInterceptor</code></a>. This is typically invoked by
<a href="../configuration/WebSecurityConfigurerAdapter.html" title="class in org.springframework.security.config.annotation.web.configuration"><code>WebSecurityConfigurerAdapter</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>securityInterceptor</code> - the <a href="../../../../web/access/intercept/FilterSecurityInterceptor.html" title="class in org.springframework.security.web.access.intercept"><code>FilterSecurityInterceptor</code></a> to use</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders"><code>WebSecurity</code></a> for further customizations</dd>
</dl>
</li>
</ul>
<a id="postBuildAction(java.lang.Runnable)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>postBuildAction</h4>
<pre class="methodSignature">public&nbsp;<a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a>&nbsp;postBuildAction&#8203;(java.lang.Runnable&nbsp;postBuildAction)</pre>
<div class="block">Executes the Runnable immediately after the build takes place</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>postBuildAction</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders"><code>WebSecurity</code></a> for further customizations</dd>
</dl>
</li>
</ul>
<a id="performBuild()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>performBuild</h4>
<pre class="methodSignature">protected&nbsp;javax.servlet.Filter&nbsp;performBuild()
                                     throws java.lang.Exception</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../AbstractConfiguredSecurityBuilder.html#performBuild()">AbstractConfiguredSecurityBuilder</a></code></span></div>
<div class="block">Subclasses must implement this method to build the object that is being returned.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../AbstractConfiguredSecurityBuilder.html#performBuild()">performBuild</a></code>&nbsp;in class&nbsp;<code><a href="../../AbstractConfiguredSecurityBuilder.html" title="class in org.springframework.security.config.annotation">AbstractConfiguredSecurityBuilder</a>&lt;javax.servlet.Filter,&#8203;<a href="WebSecurity.html" title="class in org.springframework.security.config.annotation.web.builders">WebSecurity</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the Object to be buit or null if the implementation allows it</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Exception</code></dd>
</dl>
</li>
</ul>
<a id="setApplicationContext(org.springframework.context.ApplicationContext)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>setApplicationContext</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setApplicationContext&#8203;(org.springframework.context.ApplicationContext&nbsp;applicationContext)
                           throws org.springframework.beans.BeansException</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>setApplicationContext</code>&nbsp;in interface&nbsp;<code>org.springframework.context.ApplicationContextAware</code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.springframework.beans.BeansException</code></dd>
</dl>
</li>
</ul>
<a id="setServletContext(javax.servlet.ServletContext)">

</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setServletContext</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setServletContext&#8203;(javax.servlet.ServletContext&nbsp;servletContext)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>setServletContext</code>&nbsp;in interface&nbsp;<code>org.springframework.web.context.ServletContextAware</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>

<footer role="contentinfo">
<nav role="navigation">

<div class="bottomNav"><a id="navbar.bottom">

</a>
<div class="skipNav"><a href="WebSecurity.html#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">

</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="WebSecurity.html#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="WebSecurity.html#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="WebSecurity.html#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="WebSecurity.html#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="WebSecurity.html#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">

</a></div>

</nav>
</footer>
<script>if (window.parent == window) {(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-2728886-23', 'auto', {'siteSpeedSampleRate': 100});ga('send', 'pageview');}</script><script defer src="https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194" integrity="sha512-Gi7xpJR8tSkrpF7aordPZQlW2DLtzUlZcumS8dMQjwDHEnw9I7ZLyiOj/6tZStRBGtGgN6ceN6cMH8z7etPGlw==" data-cf-beacon='{"rayId":"7040d039da6d980c","token":"bffcb8a918ae4755926f76178bfbd26b","version":"2021.12.0","si":100}' crossorigin="anonymous"></script>
</body>
</html>
